package org.wu.framework.log.platform.application;

import org.wu.framework.web.response.Result;
import org.wu.framework.web.response.ResultFactory;
import org.wu.framework.log.platform.domain.model.run.log.RunLog;
import org.wu.framework.log.platform.application.command.run.log.RunLogRemoveCommand;
import org.wu.framework.log.platform.application.command.run.log.RunLogStoryCommand;
import org.wu.framework.log.platform.application.command.run.log.RunLogUpdateCommand;
import org.wu.framework.log.platform.application.command.run.log.RunLogQueryListCommand;
import org.wu.framework.log.platform.application.command.run.log.RunLogQueryOneCommand;
import org.wu.framework.log.platform.application.dto.RunLogDTO;
import java.util.List;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
/**
 * describe 运行日志 
 *
 * @author Jia wei Wu
 * @date 2024/03/24 01:02 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication 
 **/

public interface RunLogApplication {


    /**
     * describe 新增运行日志
     *
     * @param runLogStoryCommand 新增运行日志     
     * @return {@link Result<RunLog>} 运行日志新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result<RunLog> story(RunLogStoryCommand runLogStoryCommand);

    /**
     * describe 批量新增运行日志
     *
     * @param runLogStoryCommandList 批量新增运行日志     
     * @return {@link Result<List<RunLog>>} 运行日志新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result<List<RunLog>> batchStory(List<RunLogStoryCommand> runLogStoryCommandList);

    /**
     * describe 更新运行日志
     *
     * @param runLogUpdateCommand 更新运行日志     
     * @return {@link Result<RunLog>} 运行日志领域对象     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result<RunLog> updateOne(RunLogUpdateCommand runLogUpdateCommand);

    /**
     * describe 查询单个运行日志
     *
     * @param runLogQueryOneCommand 查询单个运行日志     
     * @return {@link Result<RunLogDTO>} 运行日志DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result<RunLogDTO> findOne(RunLogQueryOneCommand runLogQueryOneCommand);

    /**
     * describe 查询多个运行日志
     *
     * @param runLogQueryListCommand 查询多个运行日志     
     * @return {@link Result <List<RunLogDTO>>} 运行日志DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result <List<RunLogDTO>> findList(RunLogQueryListCommand runLogQueryListCommand);

    /**
     * describe 分页查询多个运行日志
     *
     * @param runLogQueryListCommand 分页查询多个运行日志     
     * @return {@link Result <LazyPage<RunLogDTO>>} 分页运行日志DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result <LazyPage<RunLogDTO>> findPage(int size,int current,RunLogQueryListCommand runLogQueryListCommand);

    /**
     * describe 删除运行日志
     *
     * @param runLogRemoveCommand 删除运行日志     
     * @return {@link Result<RunLog>} 运行日志     
     
     * @author Jia wei Wu
     * @date 2024/03/24 01:02 下午
     **/

    Result<RunLog> remove(RunLogRemoveCommand runLogRemoveCommand);

}